import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { LuckController } from './luck.controller';
import { LuckService } from './luck.service';
import { LuckyInfo,User,Lucky } from '../entity';
import { APP_GUARD } from '@nestjs/core';
import {AuthGuard} from '../guard/auth.guard'

@Module({
  imports: [TypeOrmModule.forFeature([LuckyInfo,User,Lucky])],
  controllers: [LuckController],
  providers: [
    {
      provide: APP_GUARD,
      useClass:AuthGuard,
    },
    LuckService,
  ],
  exports: [],
})
export class LuckyModule { }
